package com.kc.business.service.impl;

import com.kc.business.domain.BizEnterType;
import com.kc.business.mapper.BizEnterTypeMapper;
import com.kc.business.service.IBizEnterTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/9/17
 */
@Service
public class BizEnterTypeServiceImpl implements IBizEnterTypeService {
    @Autowired
    BizEnterTypeMapper enterTypeMapper;

    /**
     * 列表查询方法
     *
     * @param bizEnterType@return
     */
    @Override
    public List<BizEnterType> getList(BizEnterType bizEnterType) {
        return enterTypeMapper.select(bizEnterType);
    }

    /**
     * @param bizEnterType
     */
    @Override
    public int add(BizEnterType bizEnterType) {
        return enterTypeMapper.insertSelective(bizEnterType);
    }

    /**
     * @param BizEnterType
     * @return
     */
    @Override
    public int edit(BizEnterType BizEnterType) {
        return enterTypeMapper.updateByPrimaryKeySelective(BizEnterType);
    }

    /**
     * @param ids
     * @return
     */
    @Override
    public int delete(String ids) {
        return enterTypeMapper.deleteByIds(ids);
    }
}
